package org.skyfree.ghyll.tcard.progress;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class ProgressPerspective implements IPerspectiveFactory {

	/**
	 * Creates the initial layout for a page.
	 */
	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		addFastViews(layout);
		addViewShortcuts(layout);
		addPerspectiveShortcuts(layout);
		layout.addView("org.skyfree.ghyll.tcard.progress.ProgressExplorer", IPageLayout.LEFT, 0.3f, editorArea);
		IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.BOTTOM, 0.67f, editorArea);
		folderLayout.addView("org.skyfree.ghyll.ui.property.GhyllPropertyView");
		folderLayout.addView(CardSearchView.ID);
	}

	/**
	 * Add fast views to the perspective.
	 */
	private void addFastViews(IPageLayout layout) {
	}

	/**
	 * Add view shortcuts to the perspective.
	 */
	private void addViewShortcuts(IPageLayout layout) {
	}

	/**
	 * Add perspective shortcuts to the perspective.
	 */
	private void addPerspectiveShortcuts(IPageLayout layout) {
	}

}
